Test Case Generation by Contract Mutation in Spec#
نویسندگان
چکیده
Mutation testing is a well known fault-based testing technique that is normally used to assess the quality of a test suite. In this paper we use the mutation operation to derive test cases that demonstrate the absence of certain faults in an implementation: In difference to conventional mutation testing, which mutates program code, we mutate program contracts and generate test-input data that is able to distinguish the mutated contract from the original one. We show how existing development tools can be used as a foundation for the presented methodology: In particular we rely on the counter-example generation capabilities of the Spec#/Boogie/Z3 system.
منابع مشابه
Automatic Test-Generation for Spec# Master Thesis Proposal
Spec# [12, 1] is a superset of C# 2.0 that provides language extensions for contracts. These contracts can be checked statically using a theorem prover to verify the correctness of the code with respect to its specification, or they can be checked at run-time. Microsoft’s CodeContracts specification language [4] has similar goals, but is supported by a growing number of tools. To allow Spec# us...
متن کاملمروری بر روش های تولید داده های آزمون در آزمون جهشی
The Spurt is led to increasing the workload for software engineers in context of producing reliable software. Given the importance of producing high quality software, software engineers created an independent process in cycle of software development that called Software Testing. One of the software testing methods that a lot of researches have been done on it is Mutation Testing. Most of the re...
متن کاملA Model-to-Implementation Mapping Tool for Automated Model-Based GUI Testing
This paper presents extensions to the Spec Explorer tool to automate the testing of software applications through their GUI based on a formal specification in Spec#. The Spec Explorer tool, developed at Microsoft Research, already supports the automatic generation and execution of test cases for API testing, but requires that the actions described in the model are bound to methods in a .Net ass...
متن کاملThe first case of NSHL by direct impression on EYA1 gene and identification of one novel mutation in MYO7A in the Iranian families
Objective(s): Targeted next-generation sequencing (NGS) provides a consequential opportunity to elucidate genetic factors in known diseases, particularly in profoundly heterogeneous disorders such as non-syndromic hearing loss (NSHL). Hearing impairments could be classified into syndromic and non-syndromic types. This study intended to assess the significance of mutations in these genes to the ...
متن کاملTesting-for-Trust: The Genetic Selection Model Applied to Component Qualification
This paper presents a method and a tool for building trustable OO components. The methodology is based on an integrated design and test approach for OO software components. It is particularly adapted to a design-by-contract approach, where the specification is systematically derived into executable assertions (invariant properties, pre/postconditions of methods). This method, based on test qual...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Electr. Notes Theor. Comput. Sci.
دوره 253 شماره
صفحات -
تاریخ انتشار 2009